package com.weme.common.service

import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log
import com.weme.common.manager.SocketManager

class WebSocketService : Service() {

    override fun onCreate() {
        super.onCreate()

        Log.e("tag","服务器已启动")
        SocketManager.init()
        SocketManager.connect()

        SocketManager.netWorkReceiverForever.observeForever {

        }
    }

    override fun onDestroy() {
    //    super.onDestroy() //   webSocketManager.closeWebSocketConnection()
    }

    override fun onBind(intent: Intent?): IBinder? {
        return null
    }
}